package com.epsoft.odin7cj.flow.enums.actflow;

/**
  * Desc: 流程模板状态
 * @author 胡义振  
 * @date 2020年05月23日 
 */
public enum FlowTmplStatusEnum {

	FLOW_TMPL_STATUS_0("0","新建"),
	FLOW_TMPL_STATUS_1("1","已就绪"),
	FLOW_TMPL_STATUS_2("2","编辑中"),
	FLOW_TMPL_STATUS_3("3","已发布"),
	FLOW_TMPL_STATUS_4("4","已终止"),
	FLOW_TMPL_STATUS_9("9","其他");
	

    private String code;
    private String message;

    FlowTmplStatusEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public static String geItemName(String itemCode){
        String rtnItemName = "";
        for (FlowTmplStatusEnum zjlxCodeEnum : FlowTmplStatusEnum.values()) {
            if(zjlxCodeEnum.code.equals(itemCode)){
                rtnItemName = zjlxCodeEnum.message;
            }
        }
        return rtnItemName;
    }

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
